<?php
class Groups_lib {
	protected $ci;
	public function __construct()
	{
		$this->ci =& get_instance();
	}

	function group_by_id($id)
	{
		$this->ci->load->model('chat/group_model', 'group_m');
		return $this->ci->group_m->group_by_id($id);
	}
	
	function get_group_name($group)
	{
		//fixed future
		$home_locale = $this->ci->config->item('home_locale', 'chat');
		return $group['vccommonname'];
		//$current_locale;
		/* if ($home_locale == $current_locale || !isset($group['vccommonname']) || !$group['vccommonname'])
			return $group['vclocalname'];
		else
			return $group['vccommonname']; */
	}
	function get_operator_groupslist($operatorid, $link)
	{
		return "";
	}
}
?>